__author__ = 'Administrator'
import itertools as it, glob, os

files = glob.glob('../*.py')
print(files)


def multiple_file_types(*patterns):
    return it.chain.from_iterable(glob.glob(pat) for pat in patterns)


for fn in multiple_file_types("*.txt", "*.py"):
    print(os.path.realpath(fn))


